import axios from '../plugin/axios/axios'

//修改密码
export const changepassword = (data,id) => {
  return axios({
      url: `/api/v1/user/pwd/${id}`,
      method: 'PUT',
      data
  },true)
}
//修改个人信息
export const personaldetails = (data,id) => {
    return axios({
        url: `/api/v1/user/${id}`,
        method: 'PUT',
        data
    },true)
}
export default {
    changepassword,
    personaldetails
}